- The XBRL Standard
- XBRL Specifications
- Registries
- Functions Registry 1.0
- Functions Registry
- xfi:arcrole-definition
- 90504:
Function test for xfi:arcrole-definition
Documentation
Tests of function xfi:arcrole-definition($arcrole as xs:string, element(xbrli:xbrl)) as xs:string?
For multi-instance use of this function, please see the examples and formula-testcase-based variations in
../90601 xfi.xbrl-instance/90601 xfi.xbrl-instance formula testcase.xml
Owners
Name
|
Affiliation
|
Email
|
Start
|
End
|
Herm Fischer |
UBMatrix / Mark V Systems
|
fischer@markv.com |
12-12-2008 at 00:00:00 |
|
References
http://www.xbrl.org/Specification/XF-PWD-2006-12-07.htm#_Toc152670666
Test Case Variations
V-01
Definition of arcrole1
Documentation
Inputs
- schema: definition-test1.xsd
(DTS Discovery starting point)
(ID=V01)
-
Function Call:
xfi:arcrole-definition('http://abc.com/arcrole/arcrole1')
(against file V01)
Outputs
-
Result test:
$result eq 'Hello from arcrole1'
V-02
Definition of arcrole2
Documentation
Inputs
- schema: definition-test1.xsd
(DTS Discovery starting point)
(ID=V02)
-
Function Call:
xfi:arcrole-definition('http://abc.com/arcrole/arcrole2')
(against file V02)
Outputs
-
Result test:
$result eq 'Hello from arcrole2'
V-03
Definition absent from arcrole3
Documentation
Inputs
- schema: definition-test1.xsd
(DTS Discovery starting point)
(ID=V03)
-
Function Call:
xfi:arcrole-definition('http://abc.com/arcrole/arcrole3')
(against file V03)
Outputs
-
Result test:
empty($result)
V-04
Definition of non-existent arcrole4
Documentation
Inputs
- schema: definition-test1.xsd
(DTS Discovery starting point)
(ID=V04)
-
Function Call:
xfi:arcrole-definition('http://abc.com/arcrole/arcrole4')
(against file V04)
Outputs
-
Result test:
empty($result)
Revisions
Name
|
On
|
Details
|
Herm Fischer |
12-12-2008 at 00:00:00 |
Created the test case.
|
Herm Fischer |
09-09-2010 at 00:00:00 |
Changed arcrole URIs to strings for cast-less coding and to be similar to fn:QName's $paramURI, an xs:string.
|